package com.emergency.assist.service.impl;

import com.emergency.assist.domain.AreaResponse;
import com.emergency.assist.domain.RouteOptimal;
import com.emergency.assist.service.AreaService;
import com.emergency.base.domain.Area;
import com.emergency.base.domain.Plan;
import com.emergency.common.util.CommonUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by lijie on 2019/10/21.
 * 给出某区域中心坐标后，依据其余辐射中心的距离判断执行何种响应方式
 */

@Service
public class AreaServiceImpl implements AreaService {
    private final static Logger logger= LoggerFactory.getLogger(RouteServiceImpl.class);

    @Override
    public List<Area> areaPlanning(Plan plan, int type) {
        return null;
    }

    public AreaResponse Response(String area){
        AreaResponse areaResponse=new AreaResponse();

        if(CommonUtils.isNullOrEmpty(area)){//如果浏览器输入的是空值
            logger.info("输入信息为空！");
            return null;
        }
        //10Km之内且角度在正负30度的锁区进行撤离
        return areaResponse;
    }
}
